<?php
header('content-type:text/html;charset=utf-8');


    $num = 2;
//php的switch中可以判断范围
    switch ($num){
        case 1:
            echo '摔跤吧爸爸';
            break;
        case $num>1:
            echo '加勒比海盗5';
            break;
        case 3:
            echo '银河护卫队2';
            break;
        case 4:
            echo '抢红';
            break;
        default:
            echo '输入有错误';
    }


